<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>net: Ruby Standard Library Documentation</title>


<script src="./js/navigation.js" defer></script>
<script src="./js/search.js" defer></script>
<script src="./js/search_index.js" defer></script>
<script src="./js/searcher.js" defer></script>
<script src="./js/darkfish.js" defer></script>

<script src="./js/jquery-3.2.0.min.js"></script>

<script src="./js/vue.min.js"></script>
<script src="./js/js.cookie.min.js"></script>

<link href="./css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="./css/rdoc.css" rel="stylesheet">
<link href="./css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
  var index_rel_prefix = "./";
  var darkModeCsseHref = "./css/rdoc-dm.css"
  var defaultModeCssHref = "./css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="file">
  <!-- index.html -->
 <div id='actionbar' >
   
<div class='wrapper mdiv'>
 <ul class='grids g0'></ul>
</div> 
<!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
</div> <!-- end action bar -->

 <div class='wrapper hdiv'>

 

<nav id='vapp' role="navigation">
  <div id="project-navigation"    >
    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="./index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="./table_of_contents.html#pages">Pages</a>
    <a href="./table_of_contents.html#classes">Classes</a>
    <a href="./table_of_contents.html#methods">Methods</a>
  </div>
</div>

    <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

  </div>
  
  <button id='toggleThing' @click="isOpen = !isOpen" _click="toggleNav()" >Show/hide navigation</button>

    <div id="project-metadata" >
      <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
    

    <div id="classindex-section" class="nav-section">
  <h3>Class and Module Index</h3>

  <ul class="link-list">
    <li><a href="./Net.html">Net</a>
    <li><a href="./Net/HTTP.html">Net::HTTP</a>
    <li><a href="./Net/HTTP/Copy.html">Net::HTTP::Copy</a>
    <li><a href="./Net/HTTP/Delete.html">Net::HTTP::Delete</a>
    <li><a href="./Net/HTTP/Get.html">Net::HTTP::Get</a>
    <li><a href="./Net/HTTP/Head.html">Net::HTTP::Head</a>
    <li><a href="./Net/HTTP/Lock.html">Net::HTTP::Lock</a>
    <li><a href="./Net/HTTP/Mkcol.html">Net::HTTP::Mkcol</a>
    <li><a href="./Net/HTTP/Move.html">Net::HTTP::Move</a>
    <li><a href="./Net/HTTP/Options.html">Net::HTTP::Options</a>
    <li><a href="./Net/HTTP/Patch.html">Net::HTTP::Patch</a>
    <li><a href="./Net/HTTP/Post.html">Net::HTTP::Post</a>
    <li><a href="./Net/HTTP/Propfind.html">Net::HTTP::Propfind</a>
    <li><a href="./Net/HTTP/Proppatch.html">Net::HTTP::Proppatch</a>
    <li><a href="./Net/HTTP/Put.html">Net::HTTP::Put</a>
    <li><a href="./Net/HTTP/Trace.html">Net::HTTP::Trace</a>
    <li><a href="./Net/HTTP/Unlock.html">Net::HTTP::Unlock</a>
    <li><a href="./Net/HTTPAccepted.html">Net::HTTPAccepted</a>
    <li><a href="./Net/HTTPAlreadyReported.html">Net::HTTPAlreadyReported</a>
    <li><a href="./Net/HTTPBadGateway.html">Net::HTTPBadGateway</a>
    <li><a href="./Net/HTTPBadRequest.html">Net::HTTPBadRequest</a>
    <li><a href="./Net/HTTPClientError.html">Net::HTTPClientError</a>
    <li><a href="./Net/HTTPClientException.html">Net::HTTPClientException</a>
    <li><a href="./Net/HTTPConflict.html">Net::HTTPConflict</a>
    <li><a href="./Net/HTTPContinue.html">Net::HTTPContinue</a>
    <li><a href="./Net/HTTPCreated.html">Net::HTTPCreated</a>
    <li><a href="./Net/HTTPEarlyHints.html">Net::HTTPEarlyHints</a>
    <li><a href="./Net/HTTPError.html">Net::HTTPError</a>
    <li><a href="./Net/HTTPExceptions.html">Net::HTTPExceptions</a>
    <li><a href="./Net/HTTPExpectationFailed.html">Net::HTTPExpectationFailed</a>
    <li><a href="./Net/HTTPFailedDependency.html">Net::HTTPFailedDependency</a>
    <li><a href="./Net/HTTPFatalError.html">Net::HTTPFatalError</a>
    <li><a href="./Net/HTTPForbidden.html">Net::HTTPForbidden</a>
    <li><a href="./Net/HTTPFound.html">Net::HTTPFound</a>
    <li><a href="./Net/HTTPGatewayTimeout.html">Net::HTTPGatewayTimeOut</a>
    <li><a href="./Net/HTTPGatewayTimeout.html">Net::HTTPGatewayTimeout</a>
    <li><a href="./Net/HTTPGenericRequest.html">Net::HTTPGenericRequest</a>
    <li><a href="./Net/HTTPGone.html">Net::HTTPGone</a>
    <li><a href="./Net/HTTPHeader.html">Net::HTTPHeader</a>
    <li><a href="./Net/HTTPIMUsed.html">Net::HTTPIMUsed</a>
    <li><a href="./Net/HTTPInformation.html">Net::HTTPInformation</a>
    <li><a href="./Net/HTTPInsufficientStorage.html">Net::HTTPInsufficientStorage</a>
    <li><a href="./Net/HTTPInternalServerError.html">Net::HTTPInternalServerError</a>
    <li><a href="./Net/HTTPLengthRequired.html">Net::HTTPLengthRequired</a>
    <li><a href="./Net/HTTPLocked.html">Net::HTTPLocked</a>
    <li><a href="./Net/HTTPLoopDetected.html">Net::HTTPLoopDetected</a>
    <li><a href="./Net/HTTPMethodNotAllowed.html">Net::HTTPMethodNotAllowed</a>
    <li><a href="./Net/HTTPMisdirectedRequest.html">Net::HTTPMisdirectedRequest</a>
    <li><a href="./Net/HTTPMovedPermanently.html">Net::HTTPMovedPermanently</a>
    <li><a href="./Net/HTTPFound.html">Net::HTTPMovedTemporarily</a>
    <li><a href="./Net/HTTPMultiStatus.html">Net::HTTPMultiStatus</a>
    <li><a href="./Net/HTTPMultipleChoices.html">Net::HTTPMultipleChoice</a>
    <li><a href="./Net/HTTPMultipleChoices.html">Net::HTTPMultipleChoices</a>
    <li><a href="./Net/HTTPNetworkAuthenticationRequired.html">Net::HTTPNetworkAuthenticationRequired</a>
    <li><a href="./Net/HTTPNoContent.html">Net::HTTPNoContent</a>
    <li><a href="./Net/HTTPNonAuthoritativeInformation.html">Net::HTTPNonAuthoritativeInformation</a>
    <li><a href="./Net/HTTPNotAcceptable.html">Net::HTTPNotAcceptable</a>
    <li><a href="./Net/HTTPNotExtended.html">Net::HTTPNotExtended</a>
    <li><a href="./Net/HTTPNotFound.html">Net::HTTPNotFound</a>
    <li><a href="./Net/HTTPNotImplemented.html">Net::HTTPNotImplemented</a>
    <li><a href="./Net/HTTPNotModified.html">Net::HTTPNotModified</a>
    <li><a href="./Net/HTTPOK.html">Net::HTTPOK</a>
    <li><a href="./Net/HTTPPartialContent.html">Net::HTTPPartialContent</a>
    <li><a href="./Net/HTTPPayloadTooLarge.html">Net::HTTPPayloadTooLarge</a>
    <li><a href="./Net/HTTPPaymentRequired.html">Net::HTTPPaymentRequired</a>
    <li><a href="./Net/HTTPPermanentRedirect.html">Net::HTTPPermanentRedirect</a>
    <li><a href="./Net/HTTPPreconditionFailed.html">Net::HTTPPreconditionFailed</a>
    <li><a href="./Net/HTTPPreconditionRequired.html">Net::HTTPPreconditionRequired</a>
    <li><a href="./Net/HTTPProcessing.html">Net::HTTPProcessing</a>
    <li><a href="./Net/HTTPProxyAuthenticationRequired.html">Net::HTTPProxyAuthenticationRequired</a>
    <li><a href="./Net/HTTPRangeNotSatisfiable.html">Net::HTTPRangeNotSatisfiable</a>
    <li><a href="./Net/HTTPRedirection.html">Net::HTTPRedirection</a>
    <li><a href="./Net/HTTPRequest.html">Net::HTTPRequest</a>
    <li><a href="./Net/HTTPPayloadTooLarge.html">Net::HTTPRequestEntityTooLarge</a>
    <li><a href="./Net/HTTPRequestHeaderFieldsTooLarge.html">Net::HTTPRequestHeaderFieldsTooLarge</a>
    <li><a href="./Net/HTTPRequestTimeout.html">Net::HTTPRequestTimeOut</a>
    <li><a href="./Net/HTTPRequestTimeout.html">Net::HTTPRequestTimeout</a>
    <li><a href="./Net/HTTPRequestURITooLong.html">Net::HTTPRequestURITooLarge</a>
    <li><a href="./Net/HTTPURITooLong.html">Net::HTTPRequestURITooLong</a>
    <li><a href="./Net/HTTPRangeNotSatisfiable.html">Net::HTTPRequestedRangeNotSatisfiable</a>
    <li><a href="./Net/HTTPResetContent.html">Net::HTTPResetContent</a>
    <li><a href="./Net/HTTPResponse.html">Net::HTTPResponse</a>
    <li><a href="./Net/HTTPRetriableError.html">Net::HTTPRetriableError</a>
    <li><a href="./Net/HTTPSeeOther.html">Net::HTTPSeeOther</a>
    <li><a href="./Net/HTTPServerError.html">Net::HTTPServerError</a>
    <li><a href="./Net/HTTPServiceUnavailable.html">Net::HTTPServiceUnavailable</a>
    <li><a href="./Net/HTTPSuccess.html">Net::HTTPSuccess</a>
    <li><a href="./Net/HTTPSwitchProtocol.html">Net::HTTPSwitchProtocol</a>
    <li><a href="./Net/HTTPTemporaryRedirect.html">Net::HTTPTemporaryRedirect</a>
    <li><a href="./Net/HTTPTooManyRequests.html">Net::HTTPTooManyRequests</a>
    <li><a href="./Net/HTTPURITooLong.html">Net::HTTPURITooLong</a>
    <li><a href="./Net/HTTPUnauthorized.html">Net::HTTPUnauthorized</a>
    <li><a href="./Net/HTTPUnavailableForLegalReasons.html">Net::HTTPUnavailableForLegalReasons</a>
    <li><a href="./Net/HTTPUnknownResponse.html">Net::HTTPUnknownResponse</a>
    <li><a href="./Net/HTTPUnprocessableEntity.html">Net::HTTPUnprocessableEntity</a>
    <li><a href="./Net/HTTPUnsupportedMediaType.html">Net::HTTPUnsupportedMediaType</a>
    <li><a href="./Net/HTTPUpgradeRequired.html">Net::HTTPUpgradeRequired</a>
    <li><a href="./Net/HTTPUseProxy.html">Net::HTTPUseProxy</a>
    <li><a href="./Net/HTTPVariantAlsoNegotiates.html">Net::HTTPVariantAlsoNegotiates</a>
    <li><a href="./Net/HTTPVersionNotSupported.html">Net::HTTPVersionNotSupported</a>
    <li><a href="./Net/OpenTimeout.html">Net::OpenTimeout</a>
    <li><a href="./Net/ProtoAuthError.html">Net::ProtoAuthError</a>
    <li><a href="./Net/ProtoCommandError.html">Net::ProtoCommandError</a>
    <li><a href="./Net/ProtoFatalError.html">Net::ProtoFatalError</a>
    <li><a href="./Net/ProtoRetriableError.html">Net::ProtoRetriableError</a>
    <li><a href="./Net/ProtoServerError.html">Net::ProtoServerError</a>
    <li><a href="./Net/ProtoSyntaxError.html">Net::ProtoSyntaxError</a>
    <li><a href="./Net/ProtoUnknownError.html">Net::ProtoUnknownError</a>
    <li><a href="./Net/ProtocRetryError.html">Net::ProtocRetryError</a>
    <li><a href="./Net/ProtocolError.html">Net::ProtocolError</a>
    <li><a href="./Net/ReadTimeout.html">Net::ReadTimeout</a>
    <li><a href="./Net/WriteAdapter.html">Net::WriteAdapter</a>
    <li><a href="./Net/WriteTimeout.html">Net::WriteTimeout</a>
  </ul>
</div>

    </div>
  </div>
</nav>


<!--  carbon ads here -->

<div id='extraz'>
  <div class='adzbox-index'  >
   
  </div>
 </div>         


<main role="main">
<p>This is the API documentation for net: Ruby Standard Library Documentation.</p>
<p>This is the API documentation for .</p>
</main>



</div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>. </p><p><a href="https://jamesbritt.bandcamp.com/">Hack your world.  Feed your head.  Live curious</a>.</p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

